import 'package:flutter/material.dart';

class IndexPageModel with ChangeNotifier {
  ///分类页索引
  static const int CATEGORY_PAGE_INDEX = 1;

  int _currentPageIndex = 0;

  int get currentPageIndex => _currentPageIndex;

  void setCurrentPageIndex(int pageIndex) {
    _currentPageIndex = pageIndex;
    notifyListeners();
  }
}

final IndexPageModel indexPageModel = IndexPageModel();